<template>
  <!-- <render /> -->
  <jsx />
</template>

<script lang="jsx" setup>
import { h } from "vue";
// render函数用法
const render = () =>
  h("div", { class: "dd" }, [[h("h2", { class: "title" }, "hhhhhh")]]);

// jsx语法
const jsx = () => (
  <div class="divBox">
    <h2>我是JSX 语法</h2>
  </div>
);
</script>
<style lang="less">
.title {
  color: red;
}
</style>